package com.guigu.erp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.erp.dto.SysMenuDto;
import com.guigu.erp.mapper.SystemMenusMapper;
import com.guigu.erp.pojo.SystemMenus;
import com.guigu.erp.service.SystemMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lenovo
 */
@Service
public class SystemMenusServiceImpl extends ServiceImpl<SystemMenusMapper,SystemMenus> implements SystemMenusService {
    @Autowired
    private SystemMenusMapper systemMenusMapper;

    @Override
    public List<SysMenuDto> getMenus(int uid) {
        return systemMenusMapper.selMenus(uid);
    }

    @Override
    public List<SysMenuDto> getSubmenus(int parentId) {
        return systemMenusMapper.selSubmenus(parentId);
    }
}
